package com.link.base.base.approval.service;

import com.link.base.base.approval.model.Approval;
import com.link.core.basic.service.BasicService;

/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/8 14:41
 * @version 1.0
 */

public interface ApprovalService extends BasicService<Approval> {

    /**
     * 匹配一个审批流程
     *
     * @param type
     * @return
     * @throws Exception
     */
    public Approval decideApproval(String type) throws Exception;

    /**
    * 审批流程更新，同时根据审批流的flowJson字段更新审批节点信息
    * @author Lizongting
    * @param  entity
    * @date 2020/6/10
    */

    void subdataUpdate(Approval entity) throws Exception;
}
